package day07.ZiXi;

import java.time.Duration;
import java.time.LocalDateTime;

public class Period02 {
    public static void main(String[] args) {
        LocalDateTime localDateTime1 = LocalDateTime.of(2045,12,24,11,11,11);
        LocalDateTime localDateTime2 = LocalDateTime.of(2089,11,21,11,11,11);
        Duration duration = Duration.between(localDateTime1,localDateTime2);
        System.out.println(duration);


        System.out.println(duration.toSeconds());

        System.out.println(duration.toMillis());

        System.out.println(duration.toNanos());
    }
}
